package com.jeejio.gerritmanage;

import com.jeejio.gerritmanage.config.ApplicationConfiguration;
import com.jeejio.gerritmanage.config.Constant;
import com.jeejio.gerritmanage.util.InvitationUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.IOException;

@SpringBootApplication
public class GerritmanageApplication {

	public static void main(String[] args) {
		Constant.sAppCtx = SpringApplication.run(GerritmanageApplication.class, args);
		Constant.APP_CONF = Constant.sAppCtx.getBean(ApplicationConfiguration.class);
		try {
			InvitationUtil.genericCode();
		} catch (IOException e) {
			e.printStackTrace();
			System.exit(1);
		}
	}

}
